Skip to content

feat(i18n): a flow screen with its own heading gets a translatable step name - #36576

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-wyo04v
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-wyo04v

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #36530
repo:objectstack#2 · os-steve · session_01ADHkmQ19xzW4F83HZd4Up6
Clause-②: yes (widening: objectstack validate accepts flows.FLOW.nodes.NODE_ID.label over a screen that authors a non-empty config.title; @objectstack/spec/automation gains flowDecisionEdgeBranch, FlowDecisionEdgeBranch, FLOW_DECISION_DEFAULT_BRANCH_LABEL)
Metadata-protocol: added
Skills-docs: follow-up #36401

维护者速读

  • 用户能看到什么变化:译文语言下的流程说明书和流程设计器里,自带标题的界面步骤现在显示译名;标题里带占位符的步骤不再显示原文或未填充的模板。
  • 为什么做:补齐流程步骤名翻译这项工作的最后一块,让每个画出来的步骤都有译名位置。
  • 出错会怎样:最坏情况是某个界面步骤仍显示原文名称,不影响流程运行;改动只涉及显示和校验,可以直接撤回。
  • 要你做什么:无。

What changes

Ruling 7076440876 (on #35979) says every drawn step can carry a label per language. A screen that sets its own config.title was the one gap: its heading had a key (screens.NODE_ID.title) but its canvas label had none, because objectstack validate refused nodes.NODE_ID.label over any screen. The key name, flows.FLOW.nodes.NODE_ID.label, is the seat's call in claim 7086969804. screens.NODE_ID.label was not used because screens already aliases label onto title.

  • Validator (packages/lint/src/validate-translation-references.ts): ScreenFacts.titled records whether a screen has a non-empty string config.title. A nodes key over a titled screen is accepted. Over an untitled screen it is still refused (TRANSLATION_TARGET_UNKNOWN) and pointed at screens.NODE_ID.title, and the message now says why. Over an approval it is still pointed at approvals.NODE_ID.label. Did-you-mean suggestions now include titled screens.
  • Reader (ui/packages/i18n/src/flowLabels.ts): stepLabel returns nodes.NODE_ID.label for a titled screen. For an untitled screen, a translated screens.NODE_ID.title that holds a {{ hole now returns undefined, so the drawing falls back to the authored label (card item 2).
  • Docs embed (metadata-viewer.tsx flowStepName): the heading test now runs before stepLabel. A titled screen is still named by its translated heading when that heading has no hole. Only a holed heading falls to the nodes key, then to the authored label.
  • Studio canvas: no code change. FlowCanvas already draws stepLabel(node) ?? node.label, so it now draws a titled screen's nodes translation.
  • Walk (packages/lint/src/i18n-walk.ts): asks for nodes.NODE_ID.label on a top-level screen whose authored config.title holds {{. That is where the docs embed draws the label. The rule, and why the Studio canvas read does not widen it, is under Acceptance notes.
  • One branch rule (comment 7084469163): flowDecisionEdgeBranch(edge, conditions) and FLOW_DECISION_DEFAULT_BRANCH_LABEL now live in packages/spec/src/automation/flow-altitude.ts beside FLOW_TECHNICAL_NODE_TYPES. decisionBranches (flow-branches.ts) and decisionBranchTechnicalTargets (i18n-walk.ts) both call it. Both local 'default' constants are deleted. It is a pure function over plain records, so no UI guard types move into spec.
  • Spec prose: the nodes group docblock, the comment and the two .describe strings in translation.zod.ts now describe the titled-screen case. There is no shape change: the group is still a plain z.record. content/docs/references/system/translation.mdx, api-surface/automation.json and export-origins/automation.json were regenerated with check:generated --fix. The liveness/translation.json evidence and notes were updated; no cited symbol moved.

Tests

  • Validator: accepts nodes over a titled screen next to its screens heading key. Still refuses it over an untitled screen (rule, severity, path, plus the redirect key) and over an approval. Offers a titled screen as did-you-mean.
  • Embed (metadata-viewer.test.tsx): a holed-title screen is named by its nodes key and never by its heading. A plain-title screen keeps its heading even when a nodes key exists. An untitled screen whose translated title adds a hole is named by its authored label.
  • Studio (FlowCanvas.test.tsx): the canvas draws a titled screen's nodes translation, and an untitled screen whose translation adds a hole keeps its authored label. The stepLabel unit assertion for a titled screen moves from undefined to the nodes value.
  • Walk (packages/cli/test/i18n-flow-node-coverage.test.ts): asks for the key on a top-level holed-title screen. Does not ask on a plain-title screen, an untitled screen or a nested holed-title screen.
Local runs (tree 6f3b8c8)
  • pnpm --filter @objectstack/lint test: Test Files 225 passed (225), Tests 9446 passed. typecheck: exit 0.
  • pnpm --filter @objectstack/spec test: Test Files 875 passed (875), Tests 27972 passed, 1 todo.
  • pnpm --filter @objectstack/cli exec vitest run --project unit: Test Files 436 passed (436), Tests 6208 passed. The integration layer is left to CI: the diff touches no integration file and no spawn entry.
  • UI: vitest run over metadata-viewer, the basic renderer tests, FlowCanvas and packages/i18n/: Test Files 133 passed, Tests 2355 passed, 13 skipped. type-check for @object-ui/i18n, @object-ui/components and @object-ui/app-shell: all three Done, exit 0.
  • pnpm --filter @objectstack/spec check:generated: 3 stale (api-surface, export-origins, docs), fixed with --fix; the re-check after the write is green.
Ablations (one per behaviour the tests pin; every mutation landed, every restore verified as blob == HEAD)
  • Validator: deleted the titled skip. Red: 1 failed (the accept test).
  • stepLabel hole test: replaced with a bare return title. Red: 2 failed (the embed test and the canvas test for an untitled screen with a hole).
  • stepLabel titled screen: returned undefined for every screen. Red: 3 failed (the embed holed-title test, the stepLabel unit test and the canvas test).
  • flowStepName order: put stepLabel back before the heading. Red: 1 failed ("never by its heading").
  • Walk: always skipped screens. Red: 1 failed (the cli walk test). The mutated lint build failed its DTS step (TS6133 on the now-unused title), and the dist preflight showed the marker absent. So the red came through the cli suite's source resolution of the walk, not through dist. Restore: lint rebuilt, --absent preflight exit 0.

Acceptance notes

  • Walk rule chosen (A4). The walk asks for nodes.NODE_ID.label on a top-level screen whose authored config.title is a string holding {{. That is exactly where the docs embed draws the label at detail: business. The Studio canvas draws the label for every titled screen, but the walk already asks only for what the docs embed draws. It does not ask for the technical steps the canvas also draws either, so the canvas read does not widen the demand. The validator accepts the key over every titled screen, at any depth, because the canvas reads it there.
  • Coverage baseline: unchanged. A static read of every type: 'screen' node in examples/, packages/platform-objects and packages/plugins finds 14 screens and no config.title holding {{, so each config moves by +0. The local check:i18n-coverage run was NOT MEASURED (PREREQUISITE NOT MET: the example closure is not built); CI runs it.
  • FLOW_DECISION_DEFAULT_BRANCH_LABEL has the same word as the engine's DEFAULT_BRANCH_LABEL (service-automation engine.ts). The engine keeps its own constant: switching it to the spec export is outside this card's file surface.
  • Not merged with origin/main before opening. overlap-check.mjs was run before each push and was clean against main and against feat(spec): a record-page tab title a relatedLists entry declares is translatable (objects.OBJECT._relatedLists.LIST.label) #36574, which shares six of these files and merges cleanly.

Verification

Read first, by risk:

  1. ui/packages/components/src/renderers/basic/metadata-viewer.tsx flowStepName: the reorder. A plain heading must still win over a nodes key.
  2. packages/lint/src/validate-translation-references.ts, the nodes block: the titled skip and its fact in collectFlowRecord.
  3. packages/spec/src/automation/flow-altitude.ts flowDecisionEdgeBranch: it must match the two readers it replaced.

Two-minute check: cd ui && pnpm exec vitest run packages/components/src/__tests__/metadata-viewer.test.tsx -t "titled screen". Expect Tests 4 passed | 20 skipped, including "names a titled screen whose heading holds a hole by its nodes key, and never by its heading".

Out of scope, kept as notes: the ADR wording for the key goes to #36086, and the skill text for the key to #36401.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmQ19xzW4F83HZd4Up6

…share the decision-branch rule from spec

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmQ19xzW4F83HZd4Up6
…eference for the decision-branch export

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmQ19xzW4F83HZd4Up6
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

11 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/api-surface/automation.json, packages/spec/export-origins/automation.json, packages/spec/liveness/translation.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/api-surface/automation.json, packages/spec/export-origins/automation.json, packages/spec/liveness/translation.json) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json abe95a950dc2fa93c49120b624129783ef818373 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c37dddbba9f4615650252f7daa86de2f835e0fba — the merge of head 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04 into base abe95a950dc2fa93c49120b624129783ef818373, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c37dddbba9f4615650252f7daa86de2f835e0fba && git checkout c37dddbba9f4615650252f7daa86de2f835e0fba
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin abe95a950dc2fa93c49120b624129783ef818373 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04 && git checkout -B drift-repro abe95a950dc2fa93c49120b624129783ef818373 && git merge --no-ff 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04

node scripts/docs-audit/affected-docs.mjs --json abe95a950dc2fa93c49120b624129783ef818373

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ19xzW4F83HZd4Up6

席位核对

ACCEPT — L1 at head 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04 (card thread of seat repo:objectstack#2, area s2-C; read 2026-11-23T00:47Z). Contract review (L2) still owed: Clause-②: yes (widening) + a published-schema face (packages/spec/src/**), so this PR carries needs:contract-review until a same-head PASS.

  • Shape. Draft, base main, first line Fixes #36530, no closing keyword on any other card; merging delivers all three card items and the comment-7084469163 item (below), so Fixes is right. l1-face.mjs --pr 36576: shape / first-line / relation / keywords / releases-path / empty-changeset / nul-suspects / declarations / skills-docs / floor-checks / dogfood all ok.
  • Premise. Measured at claim (7086969804) on 87c7bba and holds on the diff: the validator refused nodes over every screen; stepLabel answered nothing for a titled screen; flowStepName fell to the unkeyed label for a holed heading.
  • Gates (check-runs at this head). 70 runs: 61 success, 9 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success. Dev's local round: dispatch-gates --commands 120 derived, 117 exit 0, 3 NOT MEASURED (plugin-teardown self-test on a shallow clone; check:skill-examples and check:dual-build-cjs-loads without a full build), all three covered by green CI.
  • Diff read by the seat. Validator: ScreenFacts.titled (non-empty string config.title) skips the nodes refusal for a titled screen; untitled screen still translation-target-unknown with the screens.<id>.title redirect, approval unchanged; suggestions now offer titled screens. Reader: stepLabel returns nodes.<id>.label for a titled screen and drops an untitled screen's translated title that holds {{; flowStepName now tests the heading before stepLabel, so a plain heading still names its screen and only a holed one reaches the key. Walk: demands nodes.<id>.label only for a top-level screen whose authored title holds {{ (what the embed draws); the Studio canvas reads the key for every titled screen but is not demanded, consistent with how the walk treats technical steps. Branch rule: flowDecisionEdgeBranch + FLOW_DECISION_DEFAULT_BRANCH_LABEL in @objectstack/spec/automation, read by both decisionBranches and decisionBranchTechnicalTargets (the two private 'default' copies are gone).
  • Assertions. Refusal pins assert rule + severity + path (TRANSLATION_TARGET_UNKNOWN, error), message only by toContain of the redirect key. Five ablations, each red then restored to the HEAD blob (validator titled skip, stepLabel hole test, stepLabel titled arm, flowStepName order, walk screen skip).
  • Changeset / docs read sentence by sentence. .changeset/36530-titled-screen-node-label.md: each bullet matches the diff (os i18n extract is collectExpectedEntries via packages/cli/src/utils/i18n-bundle-extract.ts). content/docs/references/system/translation.mdx: four regenerated nodes rows, "a screen" → "an untitled screen".
  • Accepted deviations. (1) l1-face flags @objectstack/cli touched with no changeset entry: the only cli file is packages/cli/test/i18n-flow-node-coverage.test.ts, and cli's files ship dist, README.md, CHANGELOG.md only, so nothing published changes there; Check Changeset is green. (2) Push 2 (generated artefacts only) went out before its overlap-check, which was clean right after. (3) origin/main not merged before the PR opened; mergeable_state is clean.
  • Out of scope. The engine's own DEFAULT_BRANCH_LABEL (@objectstack/service-automation) beside the new spec constant: Acceptance notes, values agree today. ADR sentences for the titled-screen key ride carrier: #36086; skill text rides objectstack-i18n skill: document the flows nodes translation group #36401 (Skills-docs: follow-up #36401, true: no skills/** in the diff).
  • Size / landing. +295 / −95 over 17 files, under 3000; no governed path. Spec contract face ⇒ the seat lands or hands off after the L2 PASS; this thread does not land.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 23, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 6f3b8c8 · 2026-11-23T00:49Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04
Local-runs: none
Scope: packages/spec/src/automation/flow-altitude.ts, packages/spec/src/automation/index.ts, packages/spec/src/system/translation.zod.ts + packages/lint/src/validate-translation-references.ts, packages/lint/src/i18n-walk.ts, ui/packages/components/src/renderers/basic/flow-branches.ts, ui/packages/components/src/renderers/basic/metadata-viewer.tsx, ui/packages/i18n/src/flowLabels.ts

Inputs read: card #36530 (body and its 4 comments), PR #36576 (body, 17-file list, net diff against merge-base 87c7bbaf), and the 75 check-runs on this head: all completed, none failed, none pending (success or expected skip; Check Changeset, Lint & Repo Gates, TypeScript Type Check, Spec property liveness, Governed Surface Queue Guard, Test Core, Test UI all success). Tests, the generated files (api-surface, export-origins, liveness, translation.mdx) and the rest are the lane seat's ACCEPT; the changeset is read under ② only.

① Derived judgments

  • Accept-set, objectstack validate (widening) — right. flows.FLOW.nodes.NODE_ID.label is now accepted over a screen whose config.title is a non-empty string (ScreenFacts.titled: a string of non-zero length). The fact is collected in collectFlowRecord through walkFlowNodes, so it holds at any depth (ADR-0031 regions included), the same universe the nodes loop judges against. An untitled screen is still refused with translation-target-unknown and pointed at screens.NODE_ID.title; an approval is still pointed at approvals.NODE_ID.label; an unknown id is still refused and its did-you-mean list now offers titled screens. Nothing that was accepted on main is refused at this head.
  • "Titled" predicate across the four readers — right on every schema-valid config. ScreenConfigSchema.title is z.string().optional(), so the value is a string or absent. Validator: non-empty string. flowStepName: typeof title === 'string' && title. stepLabel: not undefined / null / ''. Walk: a string holding {{ (a subset, by design). A whitespace-only title is "titled" in all four. See N3 for the one spelling difference, unreachable through the schema.
  • Translation schema face — right. translation.zod.ts changes prose and two .describe strings only; the nodes group is still z.record(string, strictObject({ label })). No parse verdict moves. The new prose (an untitled screen and an approval excluded, a titled screen keyed here, heading stays screens.NODE_ID.title) matches the validator and both readers sentence by sentence.
  • Public surface, @objectstack/spec/automation (additive) — right. flowDecisionEdgeBranch, FlowDecisionEdgeBranch, FLOW_DECISION_DEFAULT_BRANCH_LABEL exported by name from flow-altitude.ts; the api-surface and export-origins rows name the same three with the same origins. Nothing removed or renamed.
  • Public surface, @object-ui/i18n stepLabel (behaviour) — right. A titled screen moves from undefined to its nodes value; an untitled screen whose translated title holds {{ moves from the raw template to undefined. All three consumers at this head draw stepLabel(node) ?? authored (FlowCanvas.tsx:1300, flow-region-view.tsx:102, and the inspector heading in FlowPreview.tsx:175, which the PR body does not name but which behaves the same way), so none can draw undefined.
  • Coverage demand (collectExpectedEntries) — right, with one stated limit. The walk newly asks for the nodes key on a top-level screen whose authored config.title holds {{. This is the walk's own documented rule for the nodes family (the label of every step the docs embed draws at detail: business); the Studio canvas reading a wider set does not widen it, exactly as for technical steps and region-nested nodes, which the canvas also draws and the walk has never asked for. The walk is locale-independent, so it tests the authored heading while the embed tests the heading in the reader's language; a translation that removes or adds a hole moves what the embed draws in that one locale without moving the demand. That is inherent in a static walk and is not a finding.
  • Branch rule — a faithful extraction; no edge's verdict moves in either reader. Checked case by case against main: non-record edge (skipped before, undefined now); isDefault === true (default in both); no declared conditions (every out-edge, including one labelled default, listed in both; the viewer's guard is still guardOf(edge.condition)); declared conditions with the default label (default); a string label a condition claims (condition, same find); anything else left out. The conditions filter (Array.isArray then plain records) is the same expression both readers carried. Against the engine (logic-nodes.ts decision executor, dag-traversal.ts traverseNext): the declared-conditions route (first matching condition's label, else default, also claimed by an isDefault edge) and the gateway route (edge conditions, isDefault as fall-through) are what the three kinds describe. The divergences that exist are pre-existing and carried over verbatim; see N1.
  • Runtime — nothing reads the key for a screen, and nothing needs to. translateFlow overlays the flow label, terminal messages and screen nodes only, and is deliberately not registered in translateMetadataDocument, so no served read translates a node label; protocol-translated-echo.ts has no flow slot and needs none. The engine's screen executor reads screens.NODE_ID.title / .description only. The key is display-only, as the zod prose and the liveness note say.

② Semver level

Clause-②: yes (widening) — agrees with the diff: the only accept-set movement is the validator accepting a key it refused, plus additive exports. No narrowing arm is owed.

Metadata-protocol: added is the right kind: a translation-bundle key an author can now write over a titled screen where objectstack validate refused it. The kind sets the level at minor on each package the diff moves, and the changeset carries minor on @objectstack/spec (new exports, schema prose), @objectstack/lint (validator, walk), @object-ui/i18n (stepLabel) and @object-ui/components (flowStepName, decisionBranches). @objectstack/cli and @object-ui/app-shell move by test files only and publish nothing. The changeset and PR body both carry the two declaration lines; Check Changeset is success on this head. The changeset body matches the tree bullet by bullet, including the honest statement that coverage asks only on a top-level screen with a holed heading.

③ Boundary flags

  • open_questions: empty in the dev report; nothing to answer.
  • Dev deviations (push 2 before its overlap-check; origin/main not merged before opening; report posted after the PR): process only, no contract effect; mergeable_state is clean.
  • Out-of-scope note, engine keeps its own DEFAULT_BRANCH_LABEL: answered under N2.
  • Key name (nodes.NODE_ID.label rather than a screens.NODE_ID.label member): the seat's call in claim 7086969804, and it holds. screens aliases label onto title, so that spelling already means the heading; the nodes group's own rule ("every node whose label has no key of its own") covers a titled screen's label without a new member. One string keeps one key: heading under screens, label under nodes.
  • ADR sentences ride ADR revisions, week of 2026-11-21: rolling checklist of ADR text out of step with main (one governed PR) #36086 and skill text rides objectstack-i18n skill: document the flows nodes translation group #36401 (Skills-docs: follow-up #36401); no docs/adr/** or skills/** path is in the diff, so neither is judged here.
  • SQL push-down: none. The diff touches no query, no id materialisation and no in-app join.

④ Design judgment

packages/spec/src/automation/flow-altitude.ts — holds. Against its first consumers: both decisionBranches and decisionBranchTechnicalTargets now call it and both private 'default' constants are gone, which is what comment 7084469163 asked for. It is a pure function over unknown, so no UI guard type entered the spec. The three kinds map one-to-one onto the viewer's guards (otherwise / the edge's own condition / the claimed condition's expression) and the walk needs only truthiness. Tried to break it: a default-labelled edge on a gateway is an ordinary edge (correct: the engine reports no branch label there); conditions holding only non-records degrades to a gateway in both readers as before; an array passed as edge is refused by isPlainRecord.

packages/spec/src/automation/index.ts — holds. Named exports beside FLOW_TECHNICAL_NODE_TYPES, type modifier on the type; api-surface and export-origins agree; Type Check gates green.

packages/spec/src/system/translation.zod.ts — holds against ruling 7076440876 ("every drawn step can carry a label per language") and its first consumers. Each sentence checked in the tree: "at any depth" (validator universe is walkFlowNodes); "the Studio canvas draws it" (FlowCanvas, RegionNode via stepLabel); "the docs embed draws it where the heading holds a hole, elsewhere names the screen by its heading" (flowStepName at this head); "objectstack validate points a nodes key over either at its own key" (untitled screen and approval branches of the nodes block).

packages/lint/src/validate-translation-references.ts — agrees. The titled skip runs before the type test, so a titled screen is accepted and an untitled one still reaches the redirect; the new message says why ("no config.title of its own, so its label is its heading").

packages/lint/src/i18n-walk.ts — agrees. The screen arm demands the key exactly where flowStepName falls to the label for the authored heading; the nested case is not demanded, consistent with the comment and the validator's wider accept. The branch-target loop is the old loop with the predicate swapped.

ui/packages/components/src/renderers/basic/metadata-viewer.tsx — agrees. Heading test first: a plain (translated or authored) heading names a titled screen even when a nodes key exists; a holed heading falls to stepLabel (the nodes key), then the authored label, then the id. An untitled screen takes the stepLabel path unchanged. With no bundle, translated is undefined and the authored values are drawn.

ui/packages/i18n/src/flowLabels.ts — agrees. The untitled arm returns inside its block (a missing or holed translated title answers undefined and never falls through to the nodes key, which validate refuses there); a titled screen falls out to the nodes read. Item (e): an untitled screen whose translated title holds a hole draws the authored label in the canvas (?? node.label), the inspector and the embed alike.

ui/packages/components/src/renderers/basic/flow-branches.ts — agrees; see ① for the case table.

No must-fix, no should-fix.

N1 (nit) — flowDecisionEdgeBranch's jsdoc says undefined is "an edge no branch can ever take". In the engine that holds only while every computed label is claimed: when a decision's branch label has no claiming out-edge, traverseNext logs a warning and evaluates every out-edge, the unlisted ones included; the engine also drops type: 'fault' out-edges, which neither drawing filters; and on a conditions decision an isDefault edge loses to a default-labelled sibling. All three are pre-existing in decisionBranches on main and moved verbatim, so no verdict changes here. Now that the rule is a published spec export, soften the sentence ("an edge the decision's own branch labels never select") or carry the engine parity on a follow-up card.

N2 (nit) — FLOW_DECISION_DEFAULT_BRANCH_LABEL and the engine's DEFAULT_BRANCH_LABEL are two copies of one word, joined only by a jsdoc sentence. That is the same shape comment 7084469163 removed between lint and UI. service-automation already imports @objectstack/spec, so the engine can read the spec constant; out of this card's file surface, so a follow-up card (the dev noted it with carrier: none).

N3 (nit) — "titled" is spelled two ways: a non-empty string in the validator and flowStepName, "not undefined / null / empty string" in stepLabel. They differ only for a non-string config.title, which ScreenConfigSchema refuses, so no served or validated flow can show the difference. One shared predicate would close it; accepted deviation or follow-up.

Implemented-by: claude/project-thread-wyo04v
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Seat landing: ACCEPT → PR #36576 comment 7088643587 (the #36530 card thread's ## 席位核对 at head 6f3b8c88b32cf4f61ef3913007f46c4fe4ac4f04). Same-head contract review PASS 7088723970 (CONTRACT_REVIEW_TIER), no must-fix or should-fix. Check-runs at this head: 62 success, 13 expected skip, 0 failed; mergeable_state clean. +295 / −95, no governed path, Clause-②: yes (widening), not over 3000 lines ⇒ non-governed: the seat lands it (ready + auto-merge).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 00:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit fed637c Nov 23, 2026
79 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-wyo04v branch November 23, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:system size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flow step names: a titled screen whose heading holds a {{ }} hole keeps its untranslated label in the docs embed

2 participants